package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author majinan
 * 用户信息表
 */
@ApiModel(value = "com-sky-dto-WxUserDto")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WxUserDto {


    @ApiModelProperty(value = "用户ID/注册不填，修改填")
    private Long id;


    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户密码")
    private String pwd;


    @NotNull(message = "用户性别不能为空")
    @ApiModelProperty(value = "性别 1男 2女")
    private Integer sex;


    @ApiModelProperty(value = "头像")
    private String url;


    @NotBlank(message = "用户电话不能为空")
    @ApiModelProperty(value = "电话")
    private String phone;

}